import { defineStore } from 'pinia'

export const screenStore = defineStore('screens', {
  state: () => {
    return {
      bodyHeight: 0,
      bodyWidth: 0,
      activeHomeNav: '',
      projectSet:[],
      selProjectId:'',
      selProjectObj:{},
      brandName:'',
      menuNav:[
        { name: '项目概述', children: null,path:'/projectdesp',isShow:false,num:0 },
        { name: '期次选择', children: null,path:'/issueselect',isShow:false,num:0  },
        // { name: '访问计划', children: null,path:'/planvisit' },
        // { name: '数据审核', children: null,path:'/dataaudit' },
        // { name: '申诉审核', children: null,path:'/appealaudit' },
        // { name: '整体进度', children: null,path:'/overallProgress' },
        // { name: '报表查看', children: null,path:'/statementview' },
        // { name: '网点申诉', children: null,path:'/branchappeal' },
      ],
      periodId:'',// 期次id
      selPeriodObj:{},// 选择的期次
      proviceList:[],// 省市区
      user:{},
      roles:[],
      guanwangPage:[],
    }
  },
  persist:true,
})
